package com.neuedu.spring.service.impl;

import com.neuedu.spring.service.IPersonService;

import java.util.*;

/**
 * 项目：spring-java4
 * 创建时间：  2022-03-18   15:47
 * 作者 :jshand
 * 描述 :
 */
public class PersonServiceImpl implements IPersonService {

    private String personName;
    private Integer age;
    private double sal;

    private String[] names;
    List<String> addresses;


    Set<String> idnos;
    Map<String ,String>   dict;
    Properties prp;

    @Override
    public void test(){
        System.out.println(toString());
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setSal(double sal) {
        this.sal = sal;
    }

    @Override
    public String toString() {
        return "PersonServiceImpl{" +
                "personName='" + personName + '\'' +
                ", age=" + age +
                ", sal=" + sal +
                ", names=" + Arrays.toString(names) +
                ", addresses=" + addresses +
                ", idnos=" + idnos +
                ", dict=" + dict +
                ", prp=" + prp +
                '}';
    }

    public void setPrp(Properties prp) {
        this.prp = prp;
    }

    public void setDict(Map<String, String> dict) {
        this.dict = dict;
    }

    public void setIdnos(Set<String> idnos) {
        this.idnos = idnos;
    }

    public void setNames(String[] names) {
        this.names = names;
    }

    public void setAddresses(List<String> addresses) {
        this.addresses = addresses;
    }

}
